<?php
/**
 * ClassName:渠道对象
 * @auditor:leijunxiang
 * @time 2025/4/2 10:30
 */

namespace app\model\freightForward;

use app\factory\Factory;
use app\model\ModelBase;

class Channel extends ModelBase
{
    //渠道id
    protected $channelId;
    //渠道名称
    protected $channelName;
    //货代id
    protected $forwardId;

    /**
     * 获取对象实例
     * @return
     */
    static public function getObj()
    {
        $count = Factory::createUniqueNumber();
        $obj = app(Channel::class);
        $obj->setChannelId($count);
        return $obj;
    }
    /**
     * @return mixed
     */
    public function getChannelId()
    {
        return $this->channelId;
    }

    /**
     * @param mixed $channelId
     */
    public function setChannelId($channelId): void
    {
        $this->channelId = $channelId;
    }

    /**
     * @return mixed
     */
    public function getChannelName()
    {
        return $this->channelName;
    }

    /**
     * @param mixed $channelName
     */
    public function setChannelName($channelName): void
    {
        $this->channelName = $channelName;
    }

    /**
     * @return mixed
     */
    public function getForwardId()
    {
        return $this->forwardId;
    }

    /**
     * @param mixed $forwardId
     */
    public function setForwardId($forwardId): void
    {
        $this->forwardId = $forwardId;
    }



}